package com.goodedeeds.domain.impl.db;

import com.youtills.core.auth.ChildResource;
import com.youtills.core.auth.Resource;

/**
 * TODO - !!!doc me!!!
 *
 * @author ravi.chiluveru
 * @since 23.0 (9/30/14)
 */
abstract class DomainChildResource<T extends DomainResource> extends DomainResource implements ChildResource<T> {

    private Long parentResourceType;
    private Long parentResourceId;
    private T parentResource;

    public Long getParentResourceType() {
        return parentResourceType;
    }

    public void setParentResourceType(Long parentResourceType) {
        this.parentResourceType = parentResourceType;
    }

    public Long getParentResourceId() {
        return parentResourceId;
    }

    public void setParentResourceId(Long parentResourceId) {
        this.parentResourceId = parentResourceId;
    }

    public T getParentResource(){
        return parentResource;
    }
}
